"""
    元组：定义 (元素,元素2...)
    不可变
    查询

    下标 长度 切片 循环


"""
students = ("小张","小明","小孙","小宣","小明","小明")
print(students[1])
print(len(students))
print(students[1:3])
print(students[:3])
print(students[0:])
print(students[::2])
for s in students:
    print(s)

for i in range(0,len(students)):
    print(students[i])

print(students.count("小明"))
print(students.index("小宣"))